package com.keda.springdata_elasticsearch.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;

/**
 * @author keda
 */
@ConfigurationProperties(prefix = "log")
@Data
public class LogConfigPropertires {

    private LogThreadPoolProperties pool = new LogThreadPoolProperties();

    @Data
    public static class LogThreadPoolProperties {
        /** 初始核心线程数 */
        private Integer corePoolSize = 1;
        /** 最大核心线程数 */
        private Integer maximumPoolSize = 4;
        /** 包活时间（单位秒） */
        private Long keepAliveTime = 10L;
        /** 线程队列大小（队列为 LinkedBlockingQueue） */
        private Integer queueSize = 1000;
    }

    private ESConfigProperties es = new ESConfigProperties();

    @Data
    public static class ESConfigProperties {

        private String indexName = "app_logs";

        private String errorLogIndexName ="error_log";

        private String dispatchLogIndexName = "dispatch_operation_logs";


    }


}
